package com.weiaibenpao.demo.chislim.ui.adapter;

import com.amap.api.services.core.PoiItem;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.weiaibenpao.demo.chislim.R;

/**
 * Created by wlx on 2017/12/19.
 */

public class SearchLocationAdapter extends BaseQuickAdapter<PoiItem,BaseViewHolder> {


    public SearchLocationAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, PoiItem poiItem) {
            baseViewHolder.setText(R.id.text_location_name,poiItem.getTitle()).
                    setText(R.id.text_location_detail,poiItem.getProvinceName()+"-"+poiItem.getCityName()+"-"+poiItem.getAdName()+"-"+poiItem.getSnippet());
//            baseViewHolder.addOnClickListener(R.id.layout_location);
    }
}
